<?php
    if($_POST['acoType'] == 2){

	if($GLOBALS['MYT']->db_query("INSERT INTO cuentasagentes (ctoAgente, ctoSaldo, ctoUltimoMovimento, ctoCurrency) VALUES ({$_POST['acoAgent']},{$_POST['acoBalance']},'{$_POST['acoDate']}',{$_POST['acoCurrency']})")==true){
		echo '<div class="confirm">Concluido</div>';
	} else {
		echo '<div class="error">Erro.</div>';	
	}
    } elseif($_POST['acoType'] == 3){

	if($GLOBALS['MYT']->db_query("INSERT INTO cuentascorr (ctoCorr, ctoSaldo, ctoUltimoMovimento, ctoCurrency) VALUES ({$_POST['acoCorrespondent']},{$_POST['acoBalance']},'{$_POST['acoDate']}',{$_POST['acoCurrency']})")==true){
		echo '<div class="confirm">Concluido</div>';
	} else {
		echo '<div class="error">Erro.</div>';
	}
    }